home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13819 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: walt.tsc.com!usenet
  2. From: Glenn Goldstein <ggoldstein@tsc.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Perl-like Regular Expression Library Without Perl
  5. Date: Wed, 10 Apr 1996 08:11:48 -0500
  6. Organization: Technology Service Corporation
  7. Message-ID: <316BB394.61FB@tsc.com>
  8. NNTP-Posting-Host: elmer.tsc.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/725)
  13. CC: goldy@tsc.com
  14.  
  15. I am looking for a regular expression library for C (commercial is OK)
  16. that implements Perl regular expressions.  Calling Perl from C is not an
  17. option; Perl will not be on the target platform <darn!>.
  18.  
  19. I have built GNU's rx and regexp.  However, since I am porting a Perl
  20. program to C, I would prefer not having to translate the regular
  21. expressions from Perl's regexp to Emacs regexp (I am assuming that these
  22. have some differences).
  23.  
  24. Any pointers or ideas?  The FAQ only mentioned the GNU libraries (and
  25. one other).
  26. -----
  27.  
  28. If you're interested, the program is used to extract data from binary
  29. files and stuff it into an Oracle database.  This was easy to do in Perl
  30. (using Oraperl) eventhough the program must examine the binary files to
  31. determine what Oracle tables to construct.  There are a fair number of
  32. related tables and the binary files may exceed 500MB.
  33.  
  34. Unfortunately, the client cannot/willnot use Perl.  I am going to port
  35. the program to ANSI C using Oracle's Pro*C precompiler and some regular
  36. expression library.  This was a case where Perl was a much better choice
  37. than C for programming.  I estimate that while it took about 3 days to
  38. write the program in Perl, it will take something like 2 weeks to port
  39. it to C (admittedly, this is due in part to my rusty C skills).  <sigh>
  40. -- 
  41.  ____________________________GLENN
  42. GOLDSTEIN_____________________________
  43. |                    Technology Service Corporation
  44. |
  45. |  ggoldstein@tsc.com                     http://www.tsc.com:80/~goldy
  46. |
  47. |_ Voice:__(812) 336-7576_________________Fax:__(812)
  48. 336-7735___________|
  49.